package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.CustomerContact;

public interface CustomerContactDao {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerContact record);

    int insertSelective(CustomerContact record);

    CustomerContact selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerContact record);

    int updateByPrimaryKey(CustomerContact record);
    
    /**
     * 根据客户ID，查询联系人列表
     * @param customerId
     * @return
     */
    List<CustomerContact> selectListByCustomerId(int customerId);
    
    /**
     * 根据客户ID，删除联系人列表
     * @param customerId
     * @return
     */
	int deleteByCustomerId(int customerId);
}